﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace MesgessSystem
{
    public partial class SplashScreen : Form
    {
        /// <summary>  
        /// 启动画面本身  
        /// </summary>  
        static SplashScreen instance;

        /// <summary>  
        /// 显示的图片  
        /// </summary>  
        //Bitmap bitmap;

        public static SplashScreen Instance
        {
            get
            {
                return instance;
            }
            set
            {
                instance = value;
            }
        }
        public SplashScreen()
        {
            InitializeComponent();
            //// 设置窗体的类型  
            //const string showInfo = "我们正在努力的加载程序，请稍后...";
            //FormBorderStyle = FormBorderStyle.None;
            //StartPosition = FormStartPosition.CenterScreen;
            //ShowInTaskbar = false;
            //bitmap = new Bitmap(Application.StartupPath + "\\13.png");
            //ClientSize = bitmap.Size;
            //using (Font font = new Font("Consoles", 10))
            //{
            //    using (Graphics g = Graphics.FromImage(bitmap))
            //    {
            //        g.DrawString(showInfo, font, Brushes.White, 130, 100);
            //    }
            //}
            //BackgroundImage = bitmap;
        }
        public static void ShowSplashScreen()
        {
            instance = new SplashScreen();
            instance.Show();
        }

        private void SplashScreen_Load(object sender, EventArgs e)
        {

        }
    }
}
